package net;

/** The basis class representing a message that can be send through a connection.
 * Basically it's just a wrapper class for a string object.
 */
public class NetMessage {

	private String _value;
	
	public byte[] getBytes(){
		return _value.getBytes();
	}
	public String toString(){
		return _value;
	}
	
	public NetMessage(String value){
		_value = value;
	}
	
	public static NetMessage valueOf(byte[] bytes){
		return new NetMessage(String.valueOf(bytes));
	}
	
}
